/*package com.ymatou.app.rec.testcase;

import org.json.JSONArray;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.app.rec.parameter.firstPageNoteBean;
import com.ymatou.app.rec.service.firstPageNoteCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import com.ymt.utils.tag.P2;
import com.ymt.utils.tag.P3;
*//**
*大首页笔记推荐接口
*FreeMaker Template自动生成代码
*//*
@TestSuite
public class Ts_firstPageNote{
	private static firstPageNoteBean firstpagenoteBean;
	private static firstPageNoteCall firstpagenoteCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("大首页笔记推荐接口");
	}

	@Before
	public void caseUp() {
		firstpagenoteBean=new firstPageNoteBean();
		firstpagenoteCall=new firstPageNoteCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(firstpagenoteCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_firstPageNote_001() {
		Logger.start("笔记推荐");
		try {
			//TODO 补全case代码
			//org.junit.Assert.fail();
			firstpagenoteBean.setFl("userid,pics,noteid,collectionnum,username,content,commentnum");
			firstpagenoteBean.setInfo("userid:111,cookieid:111555555555,idfa:idfavalue,imei:imeivalue,module:firstpagerecnote");
			firstpagenoteBean.setLimit("0,10");
			firstpagenoteCall.setData(firstpagenoteBean);
			firstpagenoteCall.callService();			
			Logger.comment("firstpagenoteCall send:" + firstpagenoteCall.getEntityString());
			Logger.comment("firstpagenoteCall response:" + firstpagenoteCall.getReturnData());
			Logger.verifyEquals("OK", firstpagenoteCall.getStatus(), "接口返回状态正确");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category(P2.class)
	@TestCase
	public void Tc_firstPageNote_002() {
		Logger.start("是否有数据返回");
		try {
			//TODO 补全case代码
			//org.junit.Assert.fail();
			firstpagenoteBean.setFl("userid,pics,noteid,collectionnum,username,content,commentnum");
			firstpagenoteBean.setInfo("userid:111,cookieid:111555555555,idfa:idfavalue,imei:imeivalue,module:firstpagerecnote");
			firstpagenoteBean.setLimit("0,10");
			firstpagenoteCall.setData(firstpagenoteBean);
			firstpagenoteCall.callService();			
			JSONArray pageNote= firstpagenoteCall.getPageNote();
			
			Logger.comment("firstpagenoteCall send:" + firstpagenoteCall.getEntityString());
			Logger.comment("firstpagenoteCall response:" + firstpagenoteCall.getReturnData());
			
			Logger.verifyNotNull(pageNote,"有返回推荐数据" );
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category(P3.class)
	@TestCase
	public void Tc_firstPageNote_003() {
		Logger.start("笔记标签推荐");
		try {
			//TODO 补全case代码
			//org.junit.Assert.fail();
			firstpagenoteBean.setFl("userid,pics,noteid,collectionnum,username,content,commentnum");
			firstpagenoteBean.setInfo("userid:111,cookieid:111555555555,idfa:idfavalue,imei:imeivalue,module:firstpagerecnotetag");
			firstpagenoteBean.setLimit("0,10");
			firstpagenoteCall.setData(firstpagenoteBean);
			firstpagenoteCall.callService();			
			JSONArray pageNote= firstpagenoteCall.getPageNote();
			
			Logger.comment("firstpagenoteCall send:" + firstpagenoteCall.getEntityString());
			Logger.comment("firstpagenoteCall response:" + firstpagenoteCall.getReturnData());
			
			Logger.verifyNotNull(pageNote,"有返回推荐数据" );
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}*/